home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: timmyd@netcom.com (Tim DeBenedictis)
- Newsgroups: comp.lang.c,comp.lang.c.moderated
- Subject: Are there std. Floating Pt. Exts.?
- Date: 4 Feb 1996 16:45:22 -0600
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4f3cu2$s1h@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: TIN [version 1.2 PL1]
-
- (Sorry about the abbreviated headline; it should have read "Standard
- Floating Point Extensions")
-
- There are a number of useful math functions which are not included in the
- standard ANSI C math library, but seem to have a fairly standard usage
- across many different implementations of the C language. Some examples:
-
- inf(), nan(): generate representations of infinity and not-a-number values
- isinf(), isnan(): tests for infinity and not-a-number values
- asinh(), atanh(): inverse hyperbolic sine and tangent
-
- I've been doing a lot of Mac programming lately, and Apple provides this
- header file called <fp.h> which contains definitions for these and other
- such routines. Interestingly, this header contains the following comment:
-
- /*******************************************************************************
- * *
- * File fp.h - PowerPC and 68K Macintosh *
- * *
- * A collection of numerical functions designed to facilitate a wide *
- * range of numerical programming. It is modeled after the Floating-Point *
- * C Extensions (FPCE) proposed technical draft of the Numerical C *
- * Extensions Group's requirements (NCEG / X3J11.1). *
-
- This leads me to believe that there -is- actually a somewhat standard set
- of floating-point extensions. Does anybody know where I could obtain the
- standard? or, better yet, obtain a draft copy of the new floating-point
- extensions header file? Or, even better yet, obtain a
- reasonably-portable source code implementation of those new functions?
- (I've written all of the above examples myself!)
-
- Thanks in advance,
-
- -Tim DeBenedictis
-